<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <title>教务管理系统 - 登录</title>
    <style>
        * { box-sizing: border-box; font-family: 'Microsoft YaHei', sans-serif; }
        body {
            background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 0;
        }
        .login-container {
            width: 380px;
            background: white;
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            overflow: hidden;
            position: relative;
        }
        .header {
            background: #2c3e50;
            color: white;
            text-align: center;
            padding: 25px 0;
            position: relative;
        }
        .header h1 {
            margin: 0;
            font-size: 24px;
            letter-spacing: 1px;
        }
        .header::after {
            content: "";
            position: absolute;
            bottom: -15px;
            left: 50%;
            transform: translateX(-50%);
            width: 30px;
            height: 30px;
            background: #2c3e50;
            border-radius: 50%;
        }
        .login-form {
            padding: 40px 30px 30px;
        }
        .form-group {
            margin-bottom: 25px;
            position: relative;
        }
        .form-group label {
            display: block;
            margin-bottom: 8px;
            color: #2c3e50;
            font-weight: 500;
        }
        .form-group input {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid #ddd;
            border-radius: 6px;
            font-size: 16px;
            transition: all 0.3s;
        }
        .form-group input:focus {
            border-color: #3498db;
            box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
            outline: none;
        }
        .btn-login {
            width: 100%;
            padding: 14px;
            background: linear-gradient(to right, #3498db, #2c3e50);
            color: white;
            border: none;
            border-radius: 6px;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
        }
        .btn-login:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
        }
        .footer {
            text-align: center;
            padding: 20px;
            color: #7f8c8d;
            font-size: 14px;
            border-top: 1px solid #eee;
        }
        .decoration {
            position: absolute;
            opacity: 0.05;
            z-index: 0;
        }
        .decoration.book {
            top: 15%;
            right: 10%;
            font-size: 120px;
        }
        .decoration.pencil {
            bottom: 20%;
            left: 10%;
            font-size: 80px;
            transform: rotate(-30deg);
        }
    </style>
</head>
<body>
<div class="login-container">
    <!-- 水墨风格装饰元素 -->
    <div class="decoration book">📚</div>
    <div class="decoration pencil">✏️</div>

    <div class="header">
        <h1>教务管理系统</h1>
    </div>

    <form class="login-form" action="${pageContext.request.contextPath}/api/auth/login" method="POST">
        <div class="form-group">
            <label for="username">用户名</label>
            <input type="text" id="username" name="username" placeholder="请输入学号/工号" required>
        </div>

        <div class="form-group">
            <label for="password">密码</label>
            <input type="password" id="password" name="password" placeholder="请输入密码" required>
        </div>

        <button type="submit" class="btn-login">登 录</button>
    </form>

    <div class="footer">
        © 2025 梧桐教务系统 | 传承智慧 · 启迪未来
    </div>
</div>
</body>
</html>
